chore: openfeature cloudflare provider scaffold - #1870
Conversation
|
@launchdarkly/js-sdk-common size report |
|
@launchdarkly/js-client-sdk-common size report |
|
@launchdarkly/js-client-sdk size report |
|
@launchdarkly/browser size report |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit ac41753. Configure here.
| }, | ||
| "devDependencies": { | ||
| "@eslint/js": "^9.0.0", | ||
| "@launchdarkly/cloudflare-server-sdk": "2.7.29", |
There was a problem hiding this comment.
Stale Cloudflare SDK pin
Medium Severity
The devDependencies pin for @launchdarkly/cloudflare-server-sdk is 2.7.29, but the workspace package is 2.7.31 (and the Cloudflare example pins that matching version). With Yarn workspaces, an exact mismatch means this package resolves from the registry instead of the local monorepo package, so local Cloudflare SDK changes and types are not what tests and builds use.
Reviewed by Cursor Bugbot for commit ac41753. Configure here.


Requirements
Related issues
Provide links to any issues in this repository or elsewhere relating to this pull request.
Describe the solution you've provided
Provide a clear and concise description of what you expect to happen.
Describe alternatives you've considered
Provide a clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context about the pull request here.
Note
Overview
Adds
@launchdarkly/openfeature-cloudflare-server(v0.1.0, pre-release), an OpenFeature provider that wraps the LaunchDarkly Cloudflare SDK for multi-user Workers.LaunchDarklyProviderextendsBaseOpenFeatureProvider, initializing the KV-backed Cloudflare client with a client-side ID and KV namespace. Unlike the Node provider, it does not emitConfigurationChangedbecause the edge store has no update notifications.Docs cover isolate-lifetime init (avoid racing
setProviderAndWaitper request),nodejs_compat, and OpenFeature context encoding. Tests cover init, typed evaluations, error mapping, and tracking. The package is wired into the monorepo workspaces and TypeScript project references.Reviewed by Cursor Bugbot for commit ac41753. Bugbot is set up for automated code reviews on this repo. Configure here.